<template>
<div class="fluid">
    <div class="container">
        <p class="oneP">KPI指标下的品效广告</p>
        <p class="twoP" style="font-weight:100">以KPI关键指标为导向优化广告效果</p>
        <button class="oneButton" @click="toCreateAIPlan">3秒获取广告资源</button>
    </div>
    <div class="rowOne">
        <div class="rowOneContainer">
            <div class="left">
                <img src="../../assets/img/bigcustomer/23.png" alt="" class="img1">
                <p class="p1">点击成本下降50%</p>
                <img src="../../assets/img/bigcustomer/23.png" alt="" class="img2">
                <p class="p2">曝光点击率提高70%</p>
                <img src="../../assets/img/bigcustomer/23.png" alt="" class="img3">
                <p class="p3">粉丝获取成本下降80%</p>
                <img src="../../assets/img/bigcustomer/23.png" alt="" class="img4">
                <p class="p4">转化率提高200%</p>
            </div>
            <div class="right">
                <ul>
                    <li v-for="(item,index) in list " :key="index" :class="{bg:liIndex==index,nobg:liIndex!=index}" @mousemove="change(index)">
                        <p>{{item}}</p>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <mask-toast v-if="showMaskToast" @closeMask="closeMask"></mask-toast>
</div>
</template>
<script>
require("../../assets/css/p.css")
const img1 = require("../../assets/img/二类电商/一键生成/14.png")
const img2 = require("../../assets/img/二类电商/一键生成/图层 4019.png")
const img3 = require("../../assets/img/二类电商/一键生成/图层 4023.png")
const img4 = require("../../assets/img/二类电商/一键生成/图层 4022.png")
const img5 = require("../../assets/img/二类电商/一键生成/图层 4024.png")
const img6 = require("../../assets/img/二类电商/一键生成/图层 4020.png")
const img7 = require("../../assets/img/二类电商/一键生成/11.png")
const img8 = require("../../assets/img/二类电商/一键生成/15.png")
const img9 = require("../../assets/img/二类电商/一键生成/16.png")
const img10 = require("../../assets/img/二类电商/一键生成/17.png")
const img11 = require("../../assets/img/二类电商/一键生成/col1.png")
const img12 = require("../../assets/img/二类电商/一键生成/col2.png")
import maskToast from '../upgrade/upgradeToast'
export default {
    data(){
        return {
            arr1:[
                [img1,"策略制定","对电商企业进行营销策略、媒介策略、竞争策略具体化及实施策略进行分析及制定。",img6,img11],
                [img2,"市场分析","对电商企业进行需求、产品、受众等分析，就预算及目标进行全方位规划。",img7,img11],
                [img3,"数据挖掘","为电商企业实行媒介资源匹配组合方案，并分配预算落实媒介执行，及时跟进。",img8,img11],
                [img4,"整合媒介","为电商企业实行媒介资源匹配组合方案，并分配预算落实媒介执行，及时跟进。",img9,img11],
                [img5,"广告素材","从广告创意、文案表达到页面排版用色，有专业团队一站式指导优化。",img10,img11]
            ],
            list:["设定KPI和需求分析，以平台检测工具进行数据跟踪、效果评估及投放优化。",
            "社会化媒体资源：日均50亿PV。",
            "优质移动APP资源：日均50亿PV+；全球日均PV100亿+。",
            "视频流量：日均PV2.86亿。",
            "战略合作媒体，日均PV49.68亿。",
            ],
            liIndex:0,
            debug: true,
            showMaskToast: false
        }
    },
    methods:{
        show(index){
            // 初始化arr1
            this.arr1[0][0] = img1
            this.arr1[1][0] = img2
            this.arr1[2][0] = img3
            this.arr1[3][0] = img4
            this.arr1[4][0] = img5
            this.arr1[0][3] = img6
            this.arr1[1][3] = img7
            this.arr1[2][3] = img8
            this.arr1[3][3] = img9
            this.arr1[4][3] = img10
            for(let i = 0;i<this.arr1.length;i++){
                this.arr1[i][4] = img11
            }
            this.arr1[index].splice(0,1,this.arr1[index][3])
            this.arr1[index].splice(4,1,img12)
        },
        change(index){
            this.liIndex = index
        },
        toCreateAIPlan(){
            if(this.debug){
                this.showMaskToast = true
                return
            }
            this.$router.push({path:'/createAIPlan'});
        },
        closeMask(data){
            this.showMaskToast = data
        }
    },
    components: {
        maskToast
    }
}
</script>
<style scoped>
.fluid{
    width:100%;
    overflow: hidden;
}
.container{
    width: 1200px;
    margin:0 auto;
    text-align: center;
    margin-top: 80px;
    overflow: hidden;
}
.oneButton{
    width:140px;
    box-shadow: 0px 4px 19px #ed9191;
    margin-bottom: 15px;
}
.rowOne{
    margin-top: 60px;
    height: 400px;
    width:100%;
    background: url("../../assets/img/bigcustomer/20.png");
}
.rowOneContainer{
    width:1200px;
    margin:0 auto;
}
.left{
    float:left;
    width:560px;
    height: 300px;
    background: url("../../assets/img/bigcustomer/21.png");
    margin-top: 50px;
    position: relative;
}
.right{
    float:left;
    margin-left: 80px;
}
.left p{
    font-size: 14px;
    font-weight: 600;
}
.img1{
    position: absolute;
    top:51px;
    left:90px;
}
.img2{
    position: absolute;
    top:33px;
    right:159px;
}
.img3{
    position: absolute;
    top:179px;
    left:165px;
}
.img4{
    position: absolute;
    top:168px;
    right:92px;
}
.p1{
    position: absolute;
    top:126px;
    left:67px;
}
.p2{
    position: absolute;
    top:112px;
    left:310px;
}
.p3{
    position: absolute;
    top:260px;
    left:125px;
}
.p4{
    position: absolute;
    top:258px;
    left:376px;
}
.right{
    margin-top: 34px;
    overflow: hidden;
}
.right ul li{
    width:560px;
    height: 50px;
    line-height: 50px;
    cursor: pointer;
    margin-top: 16px;
}
.right ul li p{
    font-size: 16px;
    color:#fff;
    margin-left: 15px;
}
.bg{
    background: url("../../assets/img/bigcustomer/26.png")
}
.nobg{
    background: none;
}
</style>